export const baseUtils = {
	//获取当前系统版本
	version:()=>{
		return '0.0.1'
	},
	//设置baseurl
	baseUrl:()=>{
		let baseUrl = '';
		if(process.env.NODE_ENV === 'development'){
			// 开发环境
			//baseUrl = 'http://192.168.2.86:8081'  //徐
			baseUrl = 'http://39.106.28.24:8081'  //徐
			//baseUrl = 'https://api-tyj.jzxcloud.com' //product
		}else{
			// 生产环境
			baseUrl = 'http://39.106.28.24:8081' //徐
			//baseUrl = 'https://api-tyj.jzxcloud.com'
		}
		return baseUrl;
	},
	/*
	*	常用的正则
	* */
	$exp:{
		phone:/^1[3,4,5,6,7,8,9]\d{9}$/,
		pw:/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{8,20}$/,
		number:/^[0-9]*[1-9][0-9]*$/,
		fixed2:/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
		tell:/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/
	}
};
